package com.labichaoka.chaoka.entity;

public class HttpStatus {
    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    /**
     * API是否请求失败
     * @return 成功返回true, 失败返回false
     */
    public boolean isSuccess() {
        return Integer.parseInt(code)>0||Integer.parseInt(code)==-200;
    }

}
